package fpt.edu.vn.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/* 
 * Topics.java
 *  
 * 0.1
 * 
 * 10/15/2012 
 *  
 * Copyright notice 
 *  
 * Modification Logs: 
 *   DATE        AUTHOR      DESCRIPTION 
 *  -------------------------------------------------------- 
 *  15-Oct-2012  ThuongND    Create new 
 */
@Entity
@Table(name = "fsh_topics")
public class Topics implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int topicId;

	private int usersId;

	private String title;

	private int topicTypeId;

	private int statusTopicId;

	private Date createDate;

	private Date renewDate;

	private Date editDate;

	private int districtId;

	private String address;

	private Float price;

	private Float area;

	private String contact;

	private String phone;

	private String description;

	private String latitude;

	private String longitude;

	private int viewNum;

	private String image;

	private Integer owner;

	private String water;

	private String power;

	private Integer toilet;

	private Integer internet;

	private Integer houseType;

	private String hour;

	private Integer motor;

	private Integer cook;

	private String motorPrice;

	@Id
	@GeneratedValue
	@Column(name = "TopicId")
	public int getTopicId() {
		return topicId;
	}

	public void setTopicId(int topicId) {
		this.topicId = topicId;
	}

	@Column(name = "UsersId")
	public int getUsersId() {
		return usersId;
	}

	public void setUsersId(int usersId) {
		this.usersId = usersId;
	}

	@Column(name = "Title")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "TopicTypeId")
	public int getTopicTypeId() {
		return topicTypeId;
	}

	public void setTopicTypeId(int topicTypeId) {
		this.topicTypeId = topicTypeId;
	}

	@Column(name = "StatusTopicId")
	public int getStatusTopicId() {
		return statusTopicId;
	}

	public void setStatusTopicId(int statusTopicId) {
		this.statusTopicId = statusTopicId;
	}

	@Column(name = "CreateDate")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "RenewDate")
	public Date getRenewDate() {
		return renewDate;
	}

	public void setRenewDate(Date renewDate) {
		this.renewDate = renewDate;
	}

	@Column(name = "EditDate")
	public Date getEditDate() {
		return editDate;
	}

	public void setEditDate(Date editDate) {
		this.editDate = editDate;
	}

	@Column(name = "DistrictId")
	public int getDistrictId() {
		return districtId;
	}

	public void setDistrictId(int districtId) {
		this.districtId = districtId;
	}

	@Column(name = "Address")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "Price")
	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	@Column(name = "Area")
	public Float getArea() {
		return area;
	}

	public void setArea(Float area) {
		this.area = area;
	}

	@Column(name = "Contact")
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "Phone")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "Description")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "Latitude")
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	@Column(name = "Longitude")
	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	@Column(name = "ViewNum")
	public int getViewNum() {
		return viewNum;
	}

	public void setViewNum(int viewNum) {
		this.viewNum = viewNum;
	}

	@Column(name = "Image")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Column(name = "Owner")
	public Integer getOwner() {
		return owner;
	}

	public void setOwner(Integer owner) {
		this.owner = owner;
	}

	@Column(name = "Water")
	public String getWater() {
		return water;
	}

	public void setWater(String water) {
		this.water = water;
	}

	@Column(name = "Power")
	public String getPower() {
		return power;
	}

	public void setPower(String power) {
		this.power = power;
	}

	@Column(name = "Toilet")
	public Integer getToilet() {
		return toilet;
	}

	public void setToilet(Integer toilet) {
		this.toilet = toilet;
	}

	@Column(name = "Internet")
	public Integer getInternet() {
		return internet;
	}

	public void setInternet(Integer internet) {
		this.internet = internet;
	}

	@Column(name = "HouseType")
	public Integer getHouseType() {
		return houseType;
	}

	public void setHouseType(Integer houseType) {
		this.houseType = houseType;
	}

	@Column(name = "Hours")
	public String getHour() {
		return hour;
	}

	public void setHour(String hour) {
		this.hour = hour;
	}

	@Column(name = "Motor")
	public Integer getMotor() {
		return motor;
	}

	public void setMotor(Integer motor) {
		this.motor = motor;
	}

	@Column(name = "MotorPrice")
	public String getMotorPrice() {
		return motorPrice;
	}

	public void setMotorPrice(String motorPrice) {
		this.motorPrice = motorPrice;
	}

	@Column(name = "Cook")
	public Integer getCook() {
		return cook;
	}

	public void setCook(Integer cook) {
		this.cook = cook;
	}

}
